package cn.ingrun.ingrunutils.autoConfiguration;

import cn.ingrun.ingrunutils.exception.GlobalExceptionHandler;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;


@Configuration
public class AutoConfiguration {

    @Bean
    @ConditionalOnMissingBean(GlobalExceptionHandler.class)
    public GlobalExceptionHandler Global(){
        return new GlobalExceptionHandler();
    }

}
